import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
//动画效果
import 'animate.css';
//导入路由
import 'nprogress/nprogress.css'
// 引入全局状态管理 Pinia
import pinia from '@/stores/index.js'
import 'viewerjs/dist/viewer.css'
import VueViewer from 'v-viewer'
import router from '@/router/index.js'
import '@/router/permission.js'
// 导入 element-plus 暗黑 css
import 'element-plus/theme-chalk/dark/css-vars.css'

//创建app实列
const app = createApp(App)

app.use(VueViewer)
app.use(router)
app.use(ElementPlus)
app.use(pinia)
app.mount('#app')
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
